package com.usefullc.system.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.usefullc.system.entity.WebResult;
import com.usefullc.system.param.FeedbackSubmitParam;
import com.usefullc.system.service.FeedbackService;
import com.usefullc.system.service.file.FileResService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Sampson
 * @date: 2022-01-10 15:28
 */
@RestController
@RequestMapping(path = "/system/feedback/")
@Api( tags="反馈管理")
public class FeedbackController extends BaseController {

    @Autowired
    private FeedbackService feedbackService;

    @ApiOperationSupport(author = "Sampson@usefullc.com")
    @ApiOperation(value = "问题建议反馈", response = WebResult.class)
    @PostMapping(path = "submit", produces = "application/json")
    public WebResult submit(@RequestBody FeedbackSubmitParam param) {
        feedbackService.submit(param);
        return WebResultBuilder.successResult();
    }



}
